package com.lqk.mall.member.feign;

import com.lqk.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author liqiankun
 * @date 2022/6/13 16:17
 * @description 远程调用优惠券(coupon)服务接口
 * 这是一个声明式的远程调用
 **/

@FeignClient(name = "mall-coupon", path = "/coupon/coupon")
public interface CouponFeignService {
    /**
     * 获取会员下的所有优惠券
     * @return R
     */
    @RequestMapping("member/coupons")
    public R memberCoupons();
}
